package com.shiwu;

import com.shiwu.service.ShiWuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lelezhang
 * @create 2020-02-10 13:03
 */
@Controller
@ResponseBody
public class ShiWuController {
    @Autowired
    private ShiWuService shiWuService;

    @RequestMapping("/shiwu")
    public String getShiWu() {
        shiWuService.test01();
        return  "1";
    }
}
